prefix=$1
etas=$2
deltas=$3
orders=$4

echo "prefix="$prefix
echo "Tmin="$orders
echo "eta="$etas
echo "delta="$deltas

for delta in $deltas
do
    for eta in $etas
    do
	result=result.$prefix.$delta.$eta
	cat /dev/null > $result
	for order in $orders
	do
	    suffix=$prefix.$delta.$eta.$order
	    ../cds --accuracy --negneg=negneg.1 --posneg=posneg.1 \
		--negpos=negpos.$suffix --pospos=pospos.$suffix --output=acc.$suffix
	    echo $order    `tail -n 1 acc.$suffix`      `tail -n 1 stats.$suffix` >> $result
	done
    done
done
